package dbtypes;

public enum PermisionPhoto {
	Nothing, All;

	public int toInt() {
		switch (this) {
		case Nothing:
			return 1;
		default:
			return 2;
		}
	}
	
	public PermisionPhoto getVal(int i) {
		if(i == 1)
			return Nothing;
		return All;
	}
}
